//
//  IntegralProductResModel.swift
//  koolcar
//
//  Created by xiantian on 2023/11/7.
//

import UIKit
import ObjectMapper

class IntegralProductResModel: Mappable {
    var code : String?
    var data : IntegralProductDataModel?
    var extData : IntegralProductDataModel?
    var msg : String?
    func mapping(map: Map) {
        code <- map["code"]
        data <- map["data"]
        extData <- map["extData"]
        msg <- map["msg"]
    }
    required init?(map: Map) {
        
    }
}

class IntegralProductDataModel: Mappable {
    var content : [IntegralProductDataContentModel]?
    var pageNumber : Int?
    var pageSize : Int?
    var total : Int?
    
    func mapping(map: Map) {
        content <- map["content"]
        pageNumber <- map["pageNumber"]
        pageSize <- map["pageSize"]
        total <- map["total"]
    }
    required init?(map: Map) {
        
    }
}


class IntegralProductDataContentModel: Mappable {
    var content : String?
    var contentEn : String?
    var contentSc : String?
    var createdTime : String?
    var delFlag : NSInteger?
    var expirationDate : Int?
    var id : NSInteger?
    var integralName : String?
    var integralNameEn : String?
    var integralNameSc : String?
    var integralValue : Double?
    var isShelf : NSInteger?
    var modifyTime : String?
    var stock : NSInteger?
    var updateById : NSInteger?
    var updateByName : String?
    var urlPicture : String?
    var version : NSInteger?
    
    var exchangeNowBlock: (()->Void)?
    func mapping(map: Map) {
        content <- map["content"]
        contentEn <- map["contentEn"]
        contentSc <- map["contentSc"]
        createdTime <- map["createdTime"]
        delFlag <- map["delFlag"]
        expirationDate <- map["expirationDate"]
        id <- map["id"]
        integralName <- map["integralName"]
        integralNameEn <- map["integralNameEn"]
        integralNameSc <- map["integralNameSc"]
        integralValue <- map["integralValue"]
        isShelf <- map["isShelf"]
        modifyTime <- map["modifyTime"]
        stock <- map["stock"]
        updateById <- map["updateById"]
        updateByName <- map["updateByName"]
        urlPicture <- map["urlPicture"]
        version <- map["version"]
        
        
    }
    required init?(map: Map) {
        
    }
}
